#!/usr/bin/env node
const program = require('commander');
const pkg = require('../package.json');
const commandHandle = require('../lib/command/index');

program
	.version(pkg.version, '-v, --version')
	.command('lint')
	.option('-d, --dir <fileName>', 'specify the directory')
	.action((options) =>{
		commandHandle(options);
	})
program.parse(process.argv);